home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList0597 / AMOSLIST / text0010.txt < prev    next >
Encoding:
Text File  |  1997-06-01  |  1017 b   |  46 lines

  1. On 04-May-97, Andrew Hawkins wrote:
  2.  
  3.  
  4.  
  5. >I need some help on the following.
  6.  
  7. >A) Eric gave me some stuff on reading the second joystick fire
  8. >button but it`s written for AmosPro & mines using 1.36.  What are
  9. >some Peeks to find the second button being pressed.  Please note
  10. >I`ve already used Peek(14675990) but that just returns 5 no
  11. >matter what I press.
  12.  
  13.  
  14.    Really??  I always use $DFF016 to read the second firebutton like
  15.    this:
  16.  
  17.    FB2=(Peek($DFF016) And 64) Xor 64
  18.  
  19.    If the 2nd firebutton is NOT pressed then FB2 will equal 0
  20.    If the 2nd firebutton IS PRESSED then FB2 will equal 64
  21.  
  22.  
  23.  
  24.    This is how I'm reading the 2nd firebutton in StarStrike2000 as 
  25.    well so, you mean that you actually can't drop the bombs on your
  26.    system?  
  27.  
  28.  
  29.    The above method SHOULD work fine. However, try adding this
  30.    line JUST BEFORE that one... 
  31.  
  32.    Doke $DFF034,$C000  which should "activate" pin 9 so you will
  33.    be able to detect the 2nd firebutton.
  34.  
  35.  
  36.  
  37.  
  38.          Hope this helps!!
  39.  
  40.  
  41.  
  42.                   Garfield
  43.  
  44.  
  45.  
  46.